id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: List Practicelist_indexing1

prev  |  next  |  chance

Predict the returned value
by Tracy '23

def return_to_a_value(x):
    list = ['apple','banana','orange','pineapple','kiwi','grapes','strawberry']
    return list[x]
Function Call  Return Value
return_to_a_value(2)
return_to_a_value(3)
return_to_a_value(5 - 5)
return_to_a_value(1 + 5)

Experiment with this code on Gitpod.io

⬅ Back